package com.example.wananrdroid.presenter;

import com.example.wananrdroid.base.BasePresenter;
import com.example.wananrdroid.bean.NaviBean;
import com.example.wananrdroid.model.NaviCallBack;
import com.example.wananrdroid.model.NaviModel;
import com.example.wananrdroid.view.NaviView;

public class NaviPresenter extends BasePresenter<NaviView> implements NaviCallBack {
    private NaviModel model;
    @Override
    protected void initModel() {
        this.model=new NaviModel();
        addModel(model);
    }
    public void navidata(){
        model.navidata(this);
    }
    @Override
    public void onSuccess(NaviBean navidata) {
        mview.onSuccess(navidata);
    }

    @Override
    public void onFali(String error) {
        mview.onFali(error);
    }
}
